package com.knife.blog.logic;

import java.util.List;

import com.knife.blog.domain.BlogReview;
import com.knife.web.tools.IPageList;

public interface BlogReviewService {
	BlogReview getBlogReview(String cid);

	boolean addBlogReview(BlogReview review);
	
	boolean addPhotoReview(BlogReview review);

	boolean delBlogReview(String cid);

	boolean check(String cid);

	int batchDelBlogReview(String[] cids);

	int countUnCheckMessage(String username);

	boolean updateBlogReview(BlogReview review);

	Number getReviewNum(String parentId);

	IPageList queryBlogReview(String parentId, int currentPage, int pageSize);

	IPageList queryUserBlogReviews(String username, int currentPage,
			int pageSize);
	
	IPageList queryUserPhotoReviews(String username, int currentPage, int pageSize);
	IPageList queryUserBlogReviewsAll(String orderBy, int currentPage, int pageSize);
        IPageList queryUserBlogUnReview(String orderBy, int currentPage, int pageSize);
	List getTopReviews(String username, int topNum);
}
